const obj ={
    name:"lisi",
}
let obj1 = {}
for (let key in obj){
    obj1[key] = obj[key]
}
console.log(obj1)

obj1 = {...obj}
console.log(obj1)